package com.heima.client.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.dtos.WmUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *
 */
@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    /**
     * 新增自媒体端用户信息
     */
    @PostMapping("/wm_user/add")
    ResponseResult add(@RequestBody WmUserDto dto);
    /**
     * 评论审核
     *
     * @param text
     * @return
     */
    @PostMapping("/api/v1/comment/sync")
    ResponseResult autoScan(@RequestBody String text);
}
